.class public Les/ok0;
.super Ljava/lang/Object;
.source "AdWebViewDownloadManagerImpl.java"

# interfaces
.implements Les/oj0;


# static fields
.field private static volatile a:Les/ok0;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/gl0;->a(Landroid/content/Context;)Les/gl0;

    return-void
.end method

.method public static a()Les/ok0;
    .locals 2

    .line 1
    sget-object v0, Les/ok0;->a:Les/ok0;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Les/ok0;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Les/ok0;->a:Les/ok0;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Les/ok0;

    invoke-direct {v1}, Les/ok0;-><init>()V

    sput-object v1, Les/ok0;->a:Les/ok0;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Les/ok0;->a:Les/ok0;

    return-object v0
.end method

.method public static b()Les/xi0;
    .locals 3

    .line 1
    new-instance v0, Les/jj0$b;

    invoke-direct {v0}, Les/jj0$b;-><init>()V

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Les/jj0$b;->a(I)Les/jj0$b;

    .line 3
    invoke-virtual {v0, v1}, Les/jj0$b;->b(I)Les/jj0$b;

    const/4 v2, 0x1

    .line 4
    invoke-virtual {v0, v2}, Les/jj0$b;->a(Z)Les/jj0$b;

    .line 5
    invoke-virtual {v0, v1}, Les/jj0$b;->c(Z)Les/jj0$b;

    .line 6
    invoke-virtual {v0, v1}, Les/jj0$b;->d(Z)Les/jj0$b;

    .line 7
    invoke-virtual {v0}, Les/jj0$b;->a()Les/jj0;

    move-result-object v0

    return-object v0
.end method

.method public static c()Les/yi0;
    .locals 3

    .line 1
    new-instance v0, Les/kj0$b;

    invoke-direct {v0}, Les/kj0$b;-><init>()V

    const-string v1, "landing_h5_download_ad_button"

    .line 2
    invoke-virtual {v0, v1}, Les/kj0$b;->a(Ljava/lang/String;)Les/kj0$b;

    .line 3
    invoke-virtual {v0, v1}, Les/kj0$b;->b(Ljava/lang/String;)Les/kj0$b;

    const-string v1, "click_start_detail"

    .line 4
    invoke-virtual {v0, v1}, Les/kj0$b;->k(Ljava/lang/String;)Les/kj0$b;

    const-string v1, "click_pause_detail"

    .line 5
    invoke-virtual {v0, v1}, Les/kj0$b;->l(Ljava/lang/String;)Les/kj0$b;

    const-string v1, "click_continue_detail"

    .line 6
    invoke-virtual {v0, v1}, Les/kj0$b;->m(Ljava/lang/String;)Les/kj0$b;

    const-string v1, "click_install_detail"

    .line 7
    invoke-virtual {v0, v1}, Les/kj0$b;->n(Ljava/lang/String;)Les/kj0$b;

    const-string v1, "click_open_detail"

    .line 8
    invoke-virtual {v0, v1}, Les/kj0$b;->o(Ljava/lang/String;)Les/kj0$b;

    const-string v1, "storage_deny_detail"

    .line 9
    invoke-virtual {v0, v1}, Les/kj0$b;->q(Ljava/lang/String;)Les/kj0$b;

    const/4 v1, 0x1

    .line 10
    invoke-virtual {v0, v1}, Les/kj0$b;->a(I)Les/kj0$b;

    const/4 v2, 0x0

    .line 11
    invoke-virtual {v0, v2}, Les/kj0$b;->a(Z)Les/kj0$b;

    .line 12
    invoke-virtual {v0, v1}, Les/kj0$b;->b(Z)Les/kj0$b;

    .line 13
    invoke-virtual {v0, v2}, Les/kj0$b;->d(Z)Les/kj0$b;

    .line 14
    invoke-virtual {v0}, Les/kj0$b;->a()Les/kj0;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public a(Landroid/content/Context;Landroid/net/Uri;Les/zi0;)Z
    .locals 11

    .line 7
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v0

    const-string v1, "disable_market"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    return v2

    :cond_0
    if-nez p2, :cond_1

    return v2

    :cond_1
    if-nez p1, :cond_2

    .line 8
    invoke-static {}, Les/lk0;->a()Landroid/content/Context;

    move-result-object p1

    :cond_2
    move-object v4, p1

    const/4 p1, 0x5

    if-nez p3, :cond_4

    .line 9
    invoke-static {v4, p2}, Les/zk0;->a(Landroid/content/Context;Landroid/net/Uri;)Les/wj0;

    move-result-object p2

    invoke-virtual {p2}, Les/wj0;->a()I

    move-result p2

    if-ne p2, p1, :cond_3

    goto :goto_0

    :cond_3
    const/4 v1, 0x0

    :goto_0
    return v1

    .line 10
    :cond_4
    new-instance v0, Les/vj0$b;

    invoke-interface {p3}, Les/zi0;->d()J

    move-result-wide v6

    .line 11
    invoke-static {}, Les/ok0;->c()Les/yi0;

    move-result-object v9

    .line 12
    invoke-static {}, Les/ok0;->b()Les/xi0;

    move-result-object v10

    move-object v5, v0

    move-object v8, p3

    invoke-direct/range {v5 .. v10}, Les/vj0$b;-><init>(JLes/zi0;Les/yi0;Les/xi0;)V

    .line 13
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object v3

    iget-object v5, v0, Les/vj0$b;->c:Les/yi0;

    const-string v6, "market_click_open"

    invoke-virtual {v3, v6, p3, v5}, Les/uk0;->a(Ljava/lang/String;Les/zi0;Les/yi0;)V

    const-string p3, "id"

    .line 14
    invoke-virtual {p2, p3}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 15
    invoke-static {v4, p2}, Les/zk0;->a(Landroid/content/Context;Ljava/lang/String;)Les/wj0;

    move-result-object p3

    .line 16
    invoke-virtual {p3}, Les/wj0;->a()I

    move-result p3

    if-ne p3, p1, :cond_6

    .line 17
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string p3, "market_open_success"

    invoke-virtual {p1, p3, v0}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    .line 18
    invoke-static {}, Les/lk0;->c()Les/ii0;

    move-result-object v3

    iget-object v5, v0, Les/vj0$b;->b:Les/zi0;

    iget-object v6, v0, Les/vj0$b;->d:Les/xi0;

    iget-object v7, v0, Les/vj0$b;->c:Les/yi0;

    invoke-interface {v5}, Les/zi0;->t()Ljava/lang/String;

    move-result-object v8

    invoke-interface/range {v3 .. v8}, Les/ii0;->a(Landroid/content/Context;Les/zi0;Les/xi0;Les/yi0;Ljava/lang/String;)V

    .line 19
    invoke-static {}, Les/sj0;->a()Les/sj0;

    move-result-object p1

    iget-object p3, v0, Les/vj0$b;->b:Les/zi0;

    invoke-virtual {p1, p3}, Les/sj0;->a(Les/zi0;)V

    .line 20
    new-instance p1, Les/nj0;

    iget-object p3, v0, Les/vj0$b;->b:Les/zi0;

    iget-object v2, v0, Les/vj0$b;->c:Les/yi0;

    iget-object v0, v0, Les/vj0$b;->d:Les/xi0;

    invoke-direct {p1, p3, v2, v0}, Les/nj0;-><init>(Les/zi0;Les/yi0;Les/xi0;)V

    .line 21
    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-nez p3, :cond_5

    .line 22
    invoke-virtual {p1, p2}, Les/nj0;->a(Ljava/lang/String;)V

    :cond_5
    const/4 p2, 0x2

    .line 23
    invoke-virtual {p1, p2}, Les/nj0;->a(I)V

    .line 24
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p2

    invoke-virtual {p1, p2, p3}, Les/nj0;->c(J)V

    const/4 p2, 0x4

    .line 25
    invoke-virtual {p1, p2}, Les/nj0;->d(I)V

    .line 26
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object p2

    invoke-virtual {p2, p1}, Les/vj0;->a(Les/nj0;)V

    return v1

    .line 27
    :cond_6
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string p2, "market_open_failed"

    invoke-virtual {p1, p2, v0}, Les/uk0;->a(Ljava/lang/String;Les/vj0$b;)V

    return v2
.end method
